﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="sheetView.aspx.cs" Inherits="WEB.sheetInfo.sheetView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    委托单查看
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <table style="width: 100%;">
        <tr height="30px">
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <table >
                    <tr>
                        <td width="200px">
                            &nbsp;
                        </td>
                        <td align="right">
                            时间范围：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="tbTimestart" runat="server" class="Wdate"></asp:TextBox>
                            至<asp:TextBox ID="tbTimestop" runat="server" class="Wdate"></asp:TextBox>
                            <asp:DropDownList ID="ddlasc" runat="server" AutoPostBack="true" 
                                onselectedindexchanged="ddlasc_SelectedIndexChanged">
                                <asp:ListItem Value="asc">升序</asp:ListItem>
                                <asp:ListItem Value="desc">降序</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="200px">
                            &nbsp;
                        </td>
                        <td align="right">
                            <asp:DropDownList ID="ddlQuery" runat="server" Style="text-align: right" Width="101px">
                                <asp:ListItem Value="CustomerName">客户名</asp:ListItem>
                                <asp:ListItem Value="ladingBillNO">提单号</asp:ListItem>
                                <asp:ListItem Value="goodsName">货物名称</asp:ListItem>
                                <asp:ListItem Value="shipname">船名</asp:ListItem>
                                <asp:ListItem Value="filingNO">归档号</asp:ListItem>
                                <asp:ListItem Value="inspectionNo">报检单号</asp:ListItem>
                                <asp:ListItem Value="customsNo">报关单号</asp:ListItem>
                                <asp:ListItem Value="sheetID">委托单单号</asp:ListItem>
                                <asp:ListItem Value="c.codename">货物类别</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="tbQuery" runat="server" Width="320px"></asp:TextBox>
                            <asp:Button ID="btnQuery" runat="server" Text="  查 询" OnClick="btnQuery_Click" CssClass="Submit_Query" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvSheetInfo" runat="server" CellPadding="4" CssClass="distance"
                    DataKeyNames="sheetID" OnRowEditing="gvSheetInfo_RowEditing" Style="text-align: center"
                    AutoGenerateColumns="False" OnRowCommand="gvSheetInfo_RowCommand" OnRowDataBound="gvSheetInfo_RowDataBound"
                    AllowPaging="True" OnPageIndexChanging="gvSheetInfo_PageIndexChanging" PageSize="20"
                    Width="2150px" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px"
                    ForeColor="Black" GridLines="Vertical">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="sheetID" HeaderText="单号">
                            <HeaderStyle Width="40px" />
                        </asp:BoundField>
                        <asp:ButtonField ButtonType="Button" CommandName="sheetid" Text="查看">
                            <ControlStyle CssClass="Submit_gv" />
                            <ItemStyle Width="40px" />
                        </asp:ButtonField>
                        <asp:CommandField ShowEditButton="True" ButtonType="Button">
                            <ControlStyle CssClass="Submit_gv " />
                            <HeaderStyle Width="50px" />
                        </asp:CommandField>
                        <asp:ButtonField ButtonType="Button" CommandName="workflowView" Text="查看工作流" ControlStyle-CssClass="Submit_gvbig">
                            <ControlStyle CssClass="Submit_gvbig"></ControlStyle>
                            <HeaderStyle Width="70px" />
                        </asp:ButtonField>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CausesValidation="false" CommandName="" 
                                    CssClass="Submit_gv" onclick="Del_Click" OnClientClick="return confirm('是否确认删除？')"
                                    CommandArgument='<%# Eval("sheetID") %>' Text="删除" />
                            </ItemTemplate>
                            <ItemStyle Width="40px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="codeName" HeaderText="货物类型">
                            <HeaderStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="agencyDate" HeaderText="日期" DataFormatString="{0:d}">
                            <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CustomerName" HeaderText="客户">
                            <HeaderStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="codeName1" HeaderText="进出口">
                            <HeaderStyle Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="typeID" HeaderText="类型">
                            <HeaderStyle Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="shipName" HeaderText="船名">
                            <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="goodsName" HeaderText="货物名称">
                            <HeaderStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="No" HeaderText="数量">
                            <HeaderStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ladingBillNo" HeaderText="提单号"></asp:BoundField>
                        <asp:BoundField DataField="customsNo" HeaderText="报关单号">
                        <ItemStyle Width="200px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="filingNO" HeaderText="归档号">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="jobNamebg" HeaderText="报关岗位">
                            <HeaderStyle Width="65px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UserNamebg" HeaderText="报关处理员">
                            <HeaderStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="busNamebg" HeaderText="当前环节">
                            <HeaderStyle Width="65px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="处理及时度">
                            <ItemTemplate>
                                <asp:Image Width="32px" Height="32px" ID="ImgIntime" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle Width="65px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="jobNamebj" HeaderText="报检岗位" Visible="False">
                            <HeaderStyle Width="65px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UserNamebj" HeaderText="报检处理员" Visible="False">
                            <HeaderStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="busNamebj" HeaderText="当前环节" Visible="False">
                            <HeaderStyle Width="65px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="处理及时度" Visible="False">
                            <ItemTemplate>
                                <asp:Image ID="Imgtimebj" runat="server" Height="32px" Width="32px" />
                            </ItemTemplate>
                            <HeaderStyle Width="65px" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="30px" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
